package com.lzhsite.technology.designPattern.command.RestaurantDemo;

import java.util.Collection;
import java.util.concurrent.ArrayBlockingQueue;

public class MenuCommand implements ICommand
{
    private Collection<ICommand> commands = new ArrayBlockingQueue<ICommand>(100);

    public void addCommand(ICommand command)
    {
        commands.add(command);
    }

    public void execute()
    {
        CommandQueue.addMenu(this);
    }

    public void setCook(ICook cook)
    {

    }

    public int getTableNumber()
    {
        return 0;
    }

    public Collection<ICommand> getCommands()
    {
        return this.commands;
    }
}
